<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <title><?= getValInArr(getSess(SESS_DIC), array('webInfo', 'webtitle')) ?></title>
  <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport" />
  <meta content="yes" name="apple-mobile-web-app-capable" />
  <meta content="black" name="apple-mobile-web-app-status-bar-style" />
  <meta content="telephone=no" name="format-detection" />
  <script type="text/javascript" src="<?php echo base_url() . 'public/home/js/' ?>jquery.js"></script>
  <?php include_once "public/home/html/bootstrap.php"  ?>
  <link rel="stylesheet" href="<?php echo base_url() . 'public/h_ui/lib/Hui-iconfont/1.0.8/' ?>iconfont.css">
  <link rel="stylesheet" href="<?php echo base_url() . 'public/home/css/' ?>mui.min.css">
  <link rel="stylesheet" href="<?php echo base_url() . 'public/home/css/' ?>index.css">
  <?php include_once "public/home/html/alert.php"  ?>
  <script type="text/javascript" src="<?php echo base_url() . 'public/home/js/' ?>function.js"></script>
  <script src='<?php echo base_url() . 'public/home/mobile_date/' ?>jdate.min.js'></script>
  <?php include_once "public/home/html/mobile_dialog.php"  ?>
  <link rel="stylesheet" href="<?php echo base_url() . 'public/home/css/' ?>other.css">

</head>

<body>
  <style>
    body {
      padding: 3%;
      text-align: center;
      color: #3A3A3A;
      background-color: #f5f5f5;
      font-size: 16px
    }

    .aui-img-logo img {
      width: 80px;
      height: 80px;
      display: block;
      border: none;
      border-radius: 100%;
      margin: 0 auto;
    }

    li {
      list-style: none
    }

    .list-group-item {
      height: 50px;
      line-height: 25px
    }

    .col-xs-4 {
      color: #3A3A3A;
    }

    .col-xs-8 {
      color: #8C8C8C;
    }

    .mask-container {
      width: 94%;
    }

    .weekend {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
    }

    .mask-row-l-title {
      font-size: 14px;
      font-weight: 700;
      text-align: left;
      margin: 5px 0 0;
    }

    .mask-row-table {
      width: 100%;
      font-size: 14px;
      margin-bottom: 15px;
    }

    .mask-row-table tr,
    .mask-row-table th,
    .mask-row-table td {
      font-weight: 500;
      padding: 3px;
      box-sizing: border-box;
    }

    .mask-row-table th {
      text-align: center;
    }

    .mask-row-table tr input {
      padding: 3px;
      height: 30px;
      margin-bottom: 0;
    }

    .mask-row-table table {
      width: 100%;
      border: 1px solid rgba(0, 0, 0, .5);
      border-spacing: 0;
    }

    .mask-row-table table tr,
    .mask-row-table table th {
      border-bottom: 1px solid rgba(0, 0, 0, .5)
    }

    .mask-row-table table td,
    .mask-row-table table th {
      border-right: 1px solid rgba(0, 0, 0, .5);
      border-bottom: 1px solid rgba(0, 0, 0, .5);
    }

    .mask-row-table table tr td:last-child {
      border-right: 0
    }

    .mask-row-table table tr:last-child td {
      border-bottom: 0
    }

    .width-65 {
      width: 65px;
    }

    .width-90 {
      width: 90px;
    }

    #table2 .select-btn {
      right: 5px;
    }
  </style>
  <div class="demo">
    <a href="javascript:;" class="aui-flex">
      <div class="aui-cou-img">
        <img src="<?php echo base_url() . 'public/home/images/' ?>icon-li-0010.png" alt="">
      </div>
      <div class="aui-flex-box-other">
        <p class="file-title"></p>
      </div>
      <div class="edit" onclick="edit(this)">编辑</div>
      <div class="delete" id="deleteItem" onclick="deleteItem(this)">删除</div>
    </a>
  </div>
  <input type="hidden" name='url' value="">
  <input type="hidden" name='pageNo' value="1">
  <div class="search-head header mui-bar mui-bar-nav row" style="background-color: #f7f9fa; border:none;">
    <div class="col-xs-1" style="margin-top: 3%">
      <a class=" Hui-iconfont Hui-iconfont-slider-left" href="javascript:void(0)" onclick="history.back();" style="color: #C9C9C9"></a>
    </div>
    <div class="col-xs-11">
      <h1 class="mui-title" style="color:#333;margin-left: -5%">学生顶岗实习巡查记录表</h1>
    </div>
  </div>

  <div style="margin-top: 15%;margin-bottom:60px;" class="aui-flex-container">
  </div>

  <div class="btn more-btn btn-info radius" onclick="more()">点击加载更多</div>
  <div class="more-hint">没有更多了</div>

  <form>
    <div class="mask" style="display: none;">
      <div class="mask-container">
        <div class="mask-title">学生顶岗实习巡查记录表</div>
        <div class="mask-close Hui-iconfont Hui-iconfont-close" onclick="cancel()"></div>

        <div class="mask-row">
          <div class="mask-row-l">文件名称</div>
          <div class="mask-row-r"><input type="text" name="name" value="" placeholder="请输入文件名称"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">巡查部门</div>
          <div class="mask-row-r"><input type="text" name="teacher_dept_name" value="" placeholder="请输入巡查部门"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">巡查人员</div>
          <div class="mask-row-r role"><?= $_SESSION[SESS_USER_HOME]['username'] . '(' . $_SESSION[SESS_USER_HOME]['usercode'] . ')' ?></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">督导身份</div>
          <div class="mask-row-r">
            <div class="mask-row-r-select">
              <select name="AttendType" id="AttendType">
              </select>
              <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
            </div>
          </div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">巡查时间</div>
          <div class="mask-row-r">
            <div id="listen_time"></div>
          </div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">单位名称</div>
          <div class="mask-row-r"><input type="text" name="unit_name" value="" placeholder="请输入单位名称"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">单位地址</div>
          <div class="mask-row-r"><input type="text" name="unit_address" value="" placeholder="请输入单位地址"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">单位联系人</div>
          <div class="mask-row-r"><input type="text" name="unit_contact" value="" placeholder="请输入单位联系人"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">单位电话</div>
          <div class="mask-row-r"><input type="number" name="unit_phone" value="" placeholder="请输入单位电话"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">实习巡查任务</div>
          <div class="mask-row-r"><textarea name="task" id="" cols="20" rows="4" placeholder="请输入实习巡查任务"></textarea></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">布置巡查领导签名</div>
          <div class="mask-row-r"><input type="text" name="leader_name" value="" placeholder="请签名"></div>
        </div>
        <div class="mask-row">
          <div class="mask-row-l">时间</div>
          <div class="mask-row-r">
            <div id="listen_time2"></div>
          </div>
        </div>

        <div class="mask-row">
          <div class="mask-row-l-title">巡查记录：</div>
        </div>
        <form>

          <div class="mask-row-table" id="table1">
            <table cellspacing="0" cellpadding="0">
              <tr>
                <th rowspan="2" class="rowspan-th" onclick="addStudent()">学生信息<span class="Hui-iconfont Hui-iconfont-add4" style="color:#1FC91C;"></span></th>
                <th>专业班级</th>
                <th>学生姓名</th>
                <th>学生联系方式或手机</th>
                <th></th>
              </tr>
              <tr class="table-tr">
                <td><input type="text" name="student_class_name[]" value=""></td>
                <td><input type="text" name="student_name[]" value=""></td>
                <td><input type="number" name="contact_phone[]" value=""></td>
                <td style="width: 8%;" onclick="delStudent(this)">
                  <div class="Hui-iconfont Hui-iconfont-del2" style="color:#dd2727;"></div>
                </td>
              </tr>
            </table>
          </div>

          <div class="mask-row-table" id="table2">
            <table cellspacing="0" cellpadding="0">
              <tr>
                <td rowspan="7" style="width: 30px;">巡查调研</td>
                <td rowspan="7" style="width: 30px;">企业对学生实习情况的基本评价</td>
                <td class="width-65">职业道德</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval1" id="eval1">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>
                </td>
                <td>
                  <input type="text" name="eval1_remark" value="">
                </td>
              </tr>
              <tr>
                <td class="width-65">工作态度</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval2" id="eval2">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>

                </td>
                <td>
                  <input type="text" name="eval2_remark" value="">
                </td>
              </tr>
              <tr>
                <td class="width-65">专业水平</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval3" id="eval3">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>

                </td>
                <td>
                  <input type="text" name="eval3_remark" value="">
                </td>
              </tr>
              <tr>
                <td class="width-65">团队合作</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval4" id="eval4">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>

                </td>
                <td>
                  <input type="text" name="eval4_remark" value="">
                </td>
              </tr>
              <tr>
                <td class="width-65">沟通能力</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval5" id="eval5">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>

                </td>
                <td>
                  <input type="text" name="eval5_remark" value="">
                </td>
              </tr>
              <tr>
                <td class="width-65">创新能力</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval6" id="eval6">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>

                </td>
                <td>
                  <input type="text" name="eval6_remark" value="">
                </td>
              </tr>
              <tr>
                <td class="width-65">心理素质</td>
                <td class="width-90">
                  <div class="mask-row-r-select">
                    <select name="eval7" id="eval7">
                      <?php foreach ((new Table5Eval)->getAll() as $k => $v) : ?>
                        <option value="<?php echo $v[XPHEnum::Value] ?>"><?php echo $v[XPHEnum::Caption] ?></option>
                      <?php endforeach ?>
                    </select>
                    <div class="select-btn Hui-iconfont Hui-iconfont-arrow2-bottom"></div>
                  </div>

                </td>
                <td>
                  <input type="text" name="eval7_remark" value="">
                </td>
              </tr>


            </table>
          </div>

          <div class="mask-row">
            <div class="mask-row-l">实习单位意见及建议</div>
            <div class="mask-row-r"><textarea name="advice" id="" cols="20" rows="4" placeholder="请输入实习单位意见及建议"></textarea></div>
          </div>
          <div class="mask-row">
            <div class="mask-row-l">单位负责人或企业导师签名</div>
            <div class="mask-row-r"><input type="text" name="mentor_name" value="" placeholder="请单位负责人或企业导师签名"></div>
          </div>
          <div class="mask-row">
            <div class="mask-row-l">联系电话</div>
            <div class="mask-row-r"><input type="text" name="mentor_phone" value="" placeholder="请输入联系电话"></div>
          </div>
          <div class="mask-row">
            <div class="mask-row-l">时间</div>
            <div class="mask-row-r">
              <div id="listen_time3"></div>
            </div>
          </div>
          <div class="mask-row">
            <div class="mask-row-l">巡查情况小结</div>
            <div class="mask-row-r"><textarea name="summary" id="" cols="20" rows="4" placeholder="请输入巡查情况小结"></textarea></div>
          </div>

          <div class="btn btn-danger radius saveBtn" onclick="save(this)">保存</div>
          <div class="btn btn-primary radius" onclick="cancel()">取消</div>

        </form>

      </div>
    </div>
  </form>

  <script>
    $(function() {
      getDocument();
      getAttendType();
    })

    // 添加
    function add() {
      $('.mask').fadeIn(300);
      // 时间
      $('#listen_time').text(getDate());
      $('#listen_time2').text(getDate());
      $('#listen_time3').text(getDate());
      $('.saveBtn')[0].setAttribute('id', '')
    }
    // 保存添加
    function save(e) {
      var id = e.getAttribute('id')
      if (!id) {
        id = ''
      }
      var name = $('input[name="name"]').val();
      var teacher_dept_name = $('input[name="teacher_dept_name"]').val();
      var unit_name = $('input[name="unit_name"]').val();
      var unit_address = $('input[name="unit_address"]').val();
      var unit_contact = $('input[name="unit_contact"]').val();
      var unit_phone = $('input[name="unit_phone"]').val();
      var leader_name = $('input[name="leader_name"]').val();
      var mentor_name = $('input[name="mentor_name"]').val();
      var mentor_phone = $('input[name="mentor_phone"]').val();
      var AttendType = $('select[name="AttendType"]').find('option:selected').val();
      if (name == '') {
        $(document).dialog({
          content: '请输入文件名称',
        });
      } else if (teacher_dept_name == '') {
        $(document).dialog({
          content: '请输入巡查部门',
        });
      } else if (unit_name == '') {
        $(document).dialog({
          content: '请输入单位名称',
        });
      } else if (unit_address == '') {
        $(document).dialog({
          content: '请输入单位地址',
        });
      } else if (unit_contact == '') {
        $(document).dialog({
          content: '请输入单位联系人',
        });
      } else if (unit_phone == '') {
        $(document).dialog({
          content: '请输入单位电话',
        });
      } else if (leader_name == '') {
        $(document).dialog({
          content: '请布置巡查领导签名',
        });
      } else if (mentor_name == '') {
        $(document).dialog({
          content: '请单位负责人签名',
        });
      } else if (mentor_phone == '') {
        $(document).dialog({
          content: '请输入单位负责人联系电话',
        });
      } else if (!AttendType) {
        $(document).dialog({
          content: '请选择督导身份',
        });
      } else {
        tableSave1(id)
      }
    }
    // 编辑
    function edit(e) {
      var id = e.getAttribute('id');
      tableEdit1(id)
      $('.mask').fadeIn(300);
    }
    // 取消编辑
    function cancel() {
      $('.mask').fadeOut(300);
      $('#listen_time').text('');
      $('#listen_time2').text('');
      $('#listen_time3').text('');
      $('.role').text("<?= $_SESSION[SESS_USER_HOME]['username'] . '(' . $_SESSION[SESS_USER_HOME]['usercode'] . ')' ?>")
      $('#table1 .table-tr').remove();
      addStudent()
      $('form')[0].reset();
    }

    // 删除
    function deleteItem(e) {
      $(document).dialog({
        type: 'confirm',
        closeBtnShow: true,
        content: '确认删除吗？',
        onClickConfirmBtn: function() {
          var id = e.getAttribute('id');
          delDocument(id);
        },
        onClickCancelBtn: function() {},
        onClickCloseBtn: function() {}
      });
    }

    // 添加学生信息
    function addStudent() {
      let demo = '<tr class="table-tr"><td><input type="text" name="student_class_name[]" value=""></td>' +
        '<td><input type="text" name="student_name[]" value=""></td>' +
        '<td><input type="number" name="contact_phone[]" value=""></td>' +
        '<td style="width: 8%;" onclick="delStudent(this)">' +
        '<div class="Hui-iconfont Hui-iconfont-del2" style="color:#dd2727;"></div>' +
        '</td></tr>';

      $('#table1 tbody').append(demo);
      let length = $('#table1 tbody .table-tr').length;
      $(".rowspan-th").attr("rowSpan", length + 1);
    }
    // 删除学生信息
    function delStudent(e) {
      let that = e;
      let index = $(that).parent('.table-tr').index();
      let trObj = $('.table-tr')
      trObj[index - 1].remove()
    }


    function getDate() {
      let yy = new Date().getFullYear();
      let mm = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1;
      let dd = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate();
      let week = new Date().getDay();
      nowDate = yy + "-" + mm + "-" + dd;
      return nowDate;
    }
    new Jdate({
      el: '#listen_time',
      format: 'YYYY-MM-DD',
      beginYear: 2020,
      endYear: 2050,
    })
    new Jdate({
      el: '#listen_time2',
      format: 'YYYY-MM-DD',
      beginYear: 2020,
      endYear: 2050,
    })
    new Jdate({
      el: '#listen_time3',
      format: 'YYYY-MM-DD',
      beginYear: 2020,
      endYear: 2050,
    })


    // 获取督导类型
    function getAttendType() {
      $.ajax({
        type: "POST",
        url: getRootPath() + '/Home/Other/getAttendType',
        data: {},
        dataType: "json",
        success: function(data) {
          console.log('getAttendType success', data)
          if (data.status == true) {
            var AttendType = data.res.AttendType
            for (var i = 0; i < AttendType.length; i++) {
              var demo = '<option value="' + AttendType[i].key + '">' + AttendType[i].value + '</option>';
              $('#AttendType').append(demo);
            }
          }

        },
        error: function(data) {
          console.log('getAttendType error', data)
        }
      });
    }

    // 获取列表页
    function getDocument(pageNo = 1, pageSize = 20) {
      $.ajax({
        type: "POST",
        url: getRootPath() + "/Home/Other/getDocument",
        data: {
          type: 5,
          pageNo: pageNo,
          pageSize: pageSize
        },
        dataType: "json",
        success: function(data) {
          console.log('getDocument success', data)
          if (data.status == true) {
            var res = data.res
            var ret = res.ret
            for (var i = 0; i < ret.length; i++) {
              var demo = $('.demo')
              demo.find('.file-title').html('(' + ret[i].username + ')' + ret[i].name)
              demo.find('.edit').attr('id', ret[i].id)
              demo.find('.delete').attr('id', ret[i].id)
              $('.aui-flex-container').append(demo.html())
            }
            if (pageNo >= res.totalPage) {
              $('.more-btn').hide();
              $('.more-hint').show();
            }
          }
        },
        error: function(data) {
          console.log('getDocument error', data)
        }
      });
    }

    // 保存接口
    function tableSave1(id) {
      var sub_time = $('#listen_time').text();
      var task_time = $('#listen_time2').text();
      var mentor_time = $('#listen_time3').text();
      var form = $("form").serialize()
      var data = 'id=' + id + '&sub_time=' + sub_time + '&task_time=' + task_time + '&mentor_time=' + mentor_time + '&' + form
      $.ajax({
        type: "POST",
        url: getRootPath() + "/Home/Other/tableSave5",
        data: data,
        dataType: "json",
        success: function(data) {
          console.log('tableSave1 success', data)
          if (data.status == true) {
            $(document).dialog({
              content: data.msg,
              onClickConfirmBtn: function() {
                cancel();
                $('.aui-flex-container').html('')
                getDocument();
              },
            });
          } else {
            $(document).dialog({
              content: data.msg,
            });
          }
        },
        error: function(data) {
          console.log('getDocument error', data)
        }
      });
    }

    // 删除
    function delDocument(id) {
      $.ajax({
        type: "POST",
        url: getRootPath() + "/Home/Other/delDocument",
        data: {
          id: id,
          type: 5
        },
        dataType: "json",
        success: function(data) {
          console.log('delDocument success', data)
          if (data.status == true) {
            $(document).dialog({
              type: 'notice',
              infoText: '删除成功',
              autoClose: 1000,
            });
            getDocument();
          }
        },
        error: function(data) {
          console.log('delDocument error', data)
        }
      });
    }

    // 编辑
    function tableEdit1(id) {
      var dialogObj = $(document).dialog({
        type: 'notice',
        infoText: '正在加载中',
      });
      $.ajax({
        type: "POST",
        url: getRootPath() + "/Home/Other/tableEdit5",
        data: {
          id: id
        },
        dataType: "json",
        success: function(data) {
          console.log('tableEdit1 success', data)
          if (data.status == true) {
            var detail = data.res.detail
            $('input[name="name"]').val(detail.name);
            $('input[name="teacher_dept_name"]').val(detail.teacher_dept_name);
            $('#listen_time').text(detail.sub_time);
            $('input[name="unit_name"]').val(detail.unit_name);
            $('input[name="unit_address"]').val(detail.unit_address);
            $('input[name="unit_contact"]').val(detail.unit_contact);
            $('input[name="unit_phone"]').val(detail.unit_phone);
            $('textarea[name="task"]').val(detail.task);
            $('input[name="leader_name"]').val(detail.leader_name);
            $('#listen_time2').text(detail.task_time);
            $('select[name="AttendType"]').val(detail.AttendType);
            // 学生信息
            var student = data.res.student
            $('#table1 .table-tr').remove();
            for (var i = 0; i < student.length; i++) {
              let demo = '<tr class="table-tr"><td><input type="text" name="student_class_name[]" value="' + student[i].student_class_name + '"></td>' +
                '<td><input type="text" name="student_name[]" value="' + student[i].student_name + '"></td>' +
                '<td><input type="number" name="contact_phone[]" value="' + student[i].contact_phone + '"></td>' +
                '<td style="width: 8%;" onclick="delStudent(this)">' +
                '<div class="Hui-iconfont Hui-iconfont-del2" style="color:#dd2727;"></div>' +
                '</td></tr>';
              $('#table1 tbody').append(demo);
            }
            let length = $('#table1 tbody .table-tr').length;
            $(".rowspan-th").attr("rowSpan", length + 1);
            // 基本评价
            $('select[name="eval1"]').val(detail.eval1)
            $('select[name="eval2"]').val(detail.eval2)
            $('select[name="eval3"]').val(detail.eval3)
            $('select[name="eval4"]').val(detail.eval4)
            $('select[name="eval5"]').val(detail.eval5)
            $('select[name="eval6"]').val(detail.eval6)
            $('select[name="eval7"]').val(detail.eval7)
            $('input[name="eval1_remark"]').val(detail.eval1_remark)
            $('input[name="eval2_remark"]').val(detail.eval2_remark)
            $('input[name="eval3_remark"]').val(detail.eval3_remark)
            $('input[name="eval4_remark"]').val(detail.eval4_remark)
            $('input[name="eval5_remark"]').val(detail.eval5_remark)
            $('input[name="eval6_remark"]').val(detail.eval6_remark)
            $('input[name="eval7_remark"]').val(detail.eval7_remark)

            $('textarea[name="advice"]').val(detail.advice);
            $('input[name="mentor_name"]').val(detail.mentor_name);
            $('input[name="mentor_phone"]').val(detail.mentor_phone);
            $('#listen_time3').text(detail.mentor_time);
            $('textarea[name="summary"]').val(detail.summary);

            $('.saveBtn')[0].setAttribute("id", detail.id)
            $('.role').text(detail.username);
            dialogObj.close()
          }

        },
        error: function(data) {
          console.log('tableEdit1 error', data)
          dialogObj.close()
        }
      });
    }

    function more() {
      var pageNo = $('input[name="pageNo"]').val();
      pageNo++
      $('input[name="pageNo"]').val(pageNo);
      getDocument(pageNo)
    }
  </script>




</body>

</html>